/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ULHT.LIG2N1.RC.VO;

import java.io.FileNotFoundException;
import java.io.IOException;

/**
 *
 * @author Administrador
 */
public class StartTimeVO {
    private long startTime;
    private final String filename = "Start.Data";

    public StartTimeVO() {
    }

    public StartTimeVO(long startTime) {
        this.startTime = startTime;
    }

    public String getFilename() {
        return filename;
    }
       
    public void writeToFile(){
        
    }

    /**
     * @return the startTime
     */
    public long getStartTime() {
        return startTime;
    }

    /**
     * @param startTime the startTime to set
     */
    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }
    
    public void writeStarTimeToFile() throws FileNotFoundException, IOException{
        FileManage fileManage = new FileManage();
        fileManage.writeLongToFile(this.startTime,this.filename);
    }
    
    public void readStarTimeFromFile() throws FileNotFoundException, IOException{
        FileManage fileManage = new FileManage();
        fileManage.readLongFromFile(this.filename);
    } 
}